package com.samples.technicalmusings.logging;

import org.apache.log4j.Logger;

/**
 * Simple class to display the use of logger
 * <a href='http://kamleshkr.wordpress.com'>Technical Musings !!
 * @author kamlesh_kumar
 */
public class B {
private static final Logger logger = Logger.getLogger(B.class);
	
	public void log(){
		
		logger.info("class B is logging info message.");
		if(logger.isDebugEnabled()){
			logger.debug("class B is logging debug message.");
		}
		
	}
}
